package com.jintoufs.service.trade;


import com.jintoufs.domain.baseinfo.Trade;
import com.jintoufs.domain.trade.Withdraw;
import org.cosmos.modules.web.msg.AjaxMsg;

import java.util.List;
import java.util.Map;

public interface TradeService {

    /**
     * 委托下单
     *
     * @param trade 下单实体
     * @return 下单成功返回200，否则返回500
     */
    AjaxMsg trade(Trade trade,String SiteName);


    /**
     * 提现
     *
     * @param withdraw 提现实体
     * @return 成功返回200，否则返回500
     */
    AjaxMsg withdraw(Withdraw withdraw);

    List<Map<String,Object>> queryByParams(Map params);
}